package com.example.demo.vo.report;

import com.example.demo.po.report.SimilarReport;
import lombok.Data;

@Data
public class SimilarReportVO {
    //查询出的相似报告的id
    private int rid;
    //查询出的两个相似报告，不知道哪个是查出的报告，哪个是原本的报告
    private int rid1;
    private int rid2;
    //基于查询的报告id
    private int baseRid;
    private double similarity;


    public SimilarReportVO(){}
    public SimilarReportVO(int rid1, int rid2, int baseRid,double sim) {
        this.rid1 = rid1;
        this.rid2 = rid2;
        this.similarity = sim;
        this.baseRid=baseRid;
    }
    public SimilarReportVO(SimilarReport similarReport){
        this.rid1=similarReport.getRid1();
        this.rid2=similarReport.getRid2();
        this.similarity=similarReport.getSim();
        this.baseRid=similarReport.getBaseRid();
    }
}
